<script src="__PUBLIC__/static/js/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
<script src="__PUBLIC__/static/layui/layui.all.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js "></script>
<script src="__PUBLIC__/static/js/help.js"></script>
<script>
var index = layer.load(1, {shade: false,time: 1.5 * 1000});
$(".layui-layer-loading").css("left", "50%");
</script>
<style type="text/css">
	.tanchubox{background: #434254; position: fixed; top: 15%; left: 10%; right: 10%; width: 80%; border-radius: 8px; z-index: 9999; padding: 3.5rem 7% 1.5rem;}
	.mask{width: 100%; height: 100%; background: rgba(36,37,45,0.8); position: fixed; top: 0; left: 0; min-width: 320px; max-width: 640px; margin: 0 auto; right: 0; z-index: 9998; display: none;}
	.close{position: absolute; top: 5px; right: 10px; color: #999999;}
	.close span{font-size: 2.5rem;}
	.tanc_btn{width: 70%; margin: 1rem auto 0; height: 2.5rem; line-height: 2.5rem; background: #5A45DE; display: block; color: #FFFFFF; font-size: 1.2rem; border-radius: 5px; text-align: center;}
	.tanchubox.bq_tanc{background: url(/public/static/index/images/bac_tcquan.png) no-repeat; background-size: 100% auto; right: 15%; padding-left: 0; padding-right: 0;}
	.bqtc_top{text-align: center; color: #C71004; font-size: 1.05rem; font-weight: bold; padding: 1rem 0 0 .3rem;margin-left:0.5rem;margin-top:0.3rem}
	.bqtc_top .num{font-size: 2rem; line-height: 2rem;}
	.close.bq_close{color: #E6E5E3; right: 15px; top: 10px;}
	.bqtc_tips{background: #F94626; text-align: center; padding: 1.7rem 0 2rem; margin-top: 1.5rem; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;}
	.bqtc_tips p{color: #FBA091; font-size: .75rem;}
	.bqtc_tips .bt{color: #FFFFFF; font-size: 1.5rem;}
	.bqtc_tips .nr{color: #FFFFFF; font-size: 1.05rem;}
	.tanc_btn.bqtc_btn{background: #FECF4D; color: #C71004; width: 80%; font-weight: bold;}
	.gb img{width:45%;	float: right;}
</style>
<!-- <div id="tc_ss" style="display: none;">
	<div class="mask" style="display: block;"></div>
	<div class="tanchubox bq_tanc" style="display: block;">
		<div class="bqtc_top">
			<div class="num">{$Think.session.info_oem.s_score}</div>
			<div>鼓励金</div>				
		</div>
		<div class="bqtc_tips">
			<p class="bt">恭喜你！</p>
			<p class="nr">获得{$Think.session.info_oem.s_score}鼓励金可消费抵扣</p>
			<p>获得的鼓励金可直接到店消费抵用</p>
			<a href="javascript:void(0)"  onclick="reward_score()" class="tanc_btn bqtc_btn">确定</a>
		</div>	
		<div class="close gb"><img src="/public/static/index/images/close2.png" onclick="reward_score()"></div>
	</div>
	
</div> -->
<!-- <script>
	
	$(function () {
		var	is_receive = "{$Think.session.info_user.is_receive}";
		var type_wxpay = "{$Think.session.type_wxpay}";
		if(is_receive==0 && type_wxpay==2){
			$("#tc_ss").show();
		}
	});
	//新用户领取鼓励金
	function reward_score(){
		is_receive = "{$Think.session.info_user.is_receive}";
		buy_good_id ="{$Think.session.buy_good_id}";
		if(is_receive==0){
			//写入数据库
			$.ajax({
				type:"post",
				url: "{:url('/index/member/receive')}",
				success: function(data) { 
				}
			})
			window.location.href="/agent/shop/fast_buy?good_id="+buy_good_id;
		}
		
		$('.mask,.bq_tanc').hide();
	}
</script> -->